// ============================== 导入依赖 ============================== //

import * as echarts from 'echarts'

const COLOR = [
  new echarts.graphic.LinearGradient(0, 0, 0, 1, [
    { offset: 0, color: '#C0D9FF' },
    { offset: 1, color: '#409EFF' },
  ]),
]

// ============================== 导出配置 ============================== //

export default {
  tooltip: {
    trigger: 'item',
  },
  xAxis: {
    data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
    axisTick: {
      show: false,
    },
  },
  yAxis: {
    axisLine: {
      show: false,
    },
    axisTick: {
      show: false,
    },
    axisLabel: {
      color: '#666',
    },
  },
  grid: {
    top: '10%',
    left: '2%',
    right: '2%',
    bottom: '0',
    containLabel: true,
  },
  series: [
    {
      type: 'bar',
      barWidth: 14,
      itemStyle: {
        color: COLOR[0],
      },
      data: [120, 200, 150, 80, 70, 110, 130],
    },
  ],
}
